Repository navigation
ci: post sticky comment on invalid PR title - #292
Conversation
Explain a failed title check in the pull request, like redstar071.dev. The comment goes away once the title is valid.
|
Note The title starts with
|
@wolfstar/plugin-api
@wolfstar/plugin-broker
@wolfstar/plugin-cache
@wolfstar/plugin-gateway
@wolfstar/plugin-i18next
@wolfstar/plugin-logger
@wolfstar/plugin-opentelemetry
@wolfstar/plugin-scheduled-tasks
@wolfstar/plugin-sharder
@wolfstar/plugin-subcommands-advanced
commit: |
There was a problem hiding this comment.
ℹ️ No critical issues — one small PR body nit.
Reviewed changes
Reviewed the single commit touching .github/workflows/semantic-pull-requests.yml.
pull-requests: write— the job permission is raised fromreadso the comment steps can post and delete. It is scoped to this job only, under the workflow's top-levelpermissions: {}.- Sticky error comment — a
marocchino/sticky-pull-request-commentstep runs withif: always() && error_message != nulland posts the lint error under thepr-title-lint-errorheader. The SHA773744901bac…matches thev2.9.4tag. - Sticky comment cleanup — a second step with
delete: trueremoves the comment onceerror_messageis empty. It is skipped when the lint step itself fails, which is the correct behaviour.
I checked three things. '' == null is true in Actions expressions, so the delete condition works. pull_request_target gives fork PRs a write token, so the comment works for them. error_message is passed through with:, not a run: script, so there is no script injection.
ℹ️ PR body disclosure line doesn't follow AI_POLICY.md
The body's disclosure line ("Wolfstar Agent Kit modified this description…") doesn't use the format in AI_POLICY.md#disclosure. That format needs the tool name, the exact model ids for the code and for the description, and the AI policy link. It also should be the last line of the body.
Technical details
# PR body disclosure format
## Affected sites
- PR #292 description — the disclosure line has no model ids and links to an external policy.
## Required outcome
- End the body with exactly one line: `> 🤖 AI disclosure: <tool> was used on this PR. Code written with <model id>; PR description written with <model id>. [AI policy](https://github.com/wolfstar-project/plugins/blob/main/AI_POLICY.md).`claude-sonnet-5-5 | 𝕏

🔗 Linked issue
None.
🧭 Context
A failed title check only shows a red status. Contributors do not see the reason unless they open the run. The same sticky comment already works in redstar071.dev.
📚 Description
Adds two
marocchino/sticky-pull-request-commentsteps. One posts the title error as a sticky comment. The other deletes it once the title is valid. The job now haspull-requests: write.Key changes
.github/workflows/semantic-pull-requests.ymlType of Change


Confidence Score: 5/5
The PR appears safe to merge.Reviews (1) · Last reviewed commit: "ci: post sticky comment on invalid PR ti..." · Reviewed by Greptile